package org.hyl.javabase.swing;

import java.awt.*;
import javax.swing.*;


public class WelcomeSwing extends JFrame
 {
     private JLabel textJLabel;
     //private JLabel pictureJLabel;
     
     public WelcomeSwing()
     {
         createUserInterface();
     }
     
     private void createUserInterface()
     {
         Container contentPane = getContentPane();
         contentPane.setBackground(Color.YELLOW);
         contentPane.setLayout(null);
         
         textJLabel = new JLabel();
         textJLabel.setText("Welcome to Java Programming!");
         textJLabel.setLocation(35,0);
         textJLabel.setSize(550,88);
         textJLabel.setFont(new Font("SanSerif",Font.PLAIN,36));
         contentPane.add(textJLabel);
         
         //pictureJLabel = new JLabel();
         //pictureJLabel.setIcon(new ImageIcon());
         
         setTitle("WelcomeSwing");
         setSize(608,413);
         setVisible(true);
     }// end mothod createUserInterface
     
     public static void main(String[] args)
     {
         WelcomeSwing application = new WelcomeSwing();
         application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     }// end method main
 
 }